package cn.pro.syg.jdbc;

//import com.mysql.jdbc.Driver;

import java.sql.DriverManager;

public class AppJDBC {
    public static void main(String[] args) throws Exception {
        //com.musql.jdbc.Driver
        //加载Mysql的驱动类
        Class.forName("com.mysql.jdbc.Driver");
        String url="jdbc:mysql://localhost:3306/test?useSSL=false";
        String username="root";
        String password="root";
        //DriverManager.getConnection();
        DriverManager.getConnection(url,username,password);
        System.out.println("连接成功！");
    }

}
